package com.bwie.controller;

import com.bwie.service.UserService;
import com.bwie.utils.R;
import com.bwie.vo.UserVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : LeiMingkun
 * @date : 2024-08-06 14:06
 * @description : UserController
 **/
@RestController
@RequestMapping("/user/user")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("/getLogin")
    public R getLogin(@RequestBody UserVo userVo){
        return userService.getLogin(userVo);
    }
    @RequestMapping("/sendCode")
    public R sendCode(@RequestBody UserVo userVo){
        return userService.sendCode(userVo);
    }
    @RequestMapping("/findUser")
    public R findUser(@RequestBody UserVo userVo){
        return userService.findUser(userVo);
    }
    public R TextGit(){
        return null;
    }
}